home *** CD-ROM | disk | FTP | other *** search
/ Champak 114 / Vol 114.iso / games / bubble_s.swf / scripts / DefineButton2_244 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2010-08-12  |  1.4 KB  |  58 lines

  1. on(release){
  2.    SDButton();
  3.    _root.vDialog = true;
  4.    attachMovie("_setup","wsetup",15000);
  5.    with(wsetup)
  6.    {
  7.       _x = (800 - _width) / 2;
  8.       _y = (600 - _height) / 2;
  9.       tbR._bb._x = ((_parent.vDColor & 16711680) >> 16) * 128 / 255 + 16;
  10.       tbG._bb._x = ((_parent.vDColor & 65280) >> 8) * 128 / 255 + 16;
  11.       tbB._bb._x = (_parent.vDColor & 255) * 128 / 255 + 16;
  12.       tbV._bb._x = _parent.vVolume * 64 / 100 + 16;
  13.       if(_parent.vLevel == 1)
  14.       {
  15.          rN.gotoAndStop("Start");
  16.          rE.gotoAndStop("Blank");
  17.          rM.gotoAndStop("Blank");
  18.       }
  19.       else if(_parent.vLevel == 2)
  20.       {
  21.          rN.gotoAndStop("Blank");
  22.          rE.gotoAndStop("Start");
  23.          rM.gotoAndStop("Blank");
  24.       }
  25.       else if(_parent.vLevel == 3)
  26.       {
  27.          rN.gotoAndStop("Blank");
  28.          rE.gotoAndStop("Blank");
  29.          rM.gotoAndStop("Start");
  30.       }
  31.       cbAS.gotoAndStop("Blank");
  32.       if(_parent.vBAnim)
  33.       {
  34.          cbBA.gotoAndStop("Start");
  35.       }
  36.       else
  37.       {
  38.          cbBA.gotoAndStop("Blank");
  39.       }
  40.       if(_parent.vSound)
  41.       {
  42.          cbS.gotoAndStop("Start");
  43.       }
  44.       else
  45.       {
  46.          cbS.gotoAndStop("Blank");
  47.       }
  48.       if(_parent.vLQ)
  49.       {
  50.          cbLQ.gotoAndStop("Start");
  51.       }
  52.       else
  53.       {
  54.          cbLQ.gotoAndStop("Blank");
  55.       }
  56.    }
  57. }
  58.